# lco Makefile
# Copyright (C) 2018 Ariadne Devos
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

nobase_dist_doc_DATA = HACKING COPYING README process/*

lib_LTLIBRARIES = liblco.la
nobase_include_HEADERS = lco.h
liblco_la_SOURCES = lco.c
EXTRA_liblco_la_SOURCES = lco-x86-64.s
liblco_la_LIBADD = lco-$(ABI).lo
liblco_la_DEPENDENCIES = lco-$(ABI).lo

# From 7.3 'Updating library version information' of the GNU Libtool
# documentation:
# If there are only new interfaces, set the second number to 0, increment the
# first and the last. If there are no interface changes, increment the second
# number. Addition of my own: don't make incompatible changes.
liblco_la_LDFLAGS = -version-info 0:0:0
# libtool automatically creates a wrapper that sets LD_LIBRARY_PATH to include
# liblco.
check_PROGRAMS = tests/fibonacci
tests_fibonacci_LDADD = liblco.la
TESTS = $(check_PROGRAMS)
